﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Elegant2.Business.Events
{
    public delegate void TicketMessageEvent(object sender, TicketEventArgs e);
   
    class TicketEventDeclaration
    {
        public event TicketMessageEvent TicketMessage;

        public void TicketStatus(string message)
        {
            TicketMessage(this, new TicketEventArgs(message));
        }

        protected virtual void OnTicketOK(object sender, TicketEventArgs e)
        {
            if (TicketMessage != null)
            {
                TicketMessage(this, e);
            }
        }
    }
}
